# 1. 获取输入的内容
def getInput():
    weights = eval(input("请输入若干体重的值，用英文逗号隔开：\n"))
    return weights


# 2. 计算平均值
def average(nums: tuple):
    sum = 0
    for i in nums:
        sum += i
    return sum / len(nums)


# 3. 得到大于平均值的数
def getLarger(nums: tuple, standard: float):
    result = []
    for i in nums:
        if i > standard:
            result.append(str(i))
    return result


# 4. 输出结果
def showResult(result: list):
    print(' '.join(result))


# 5. 主函数
def main():
    weights = getInput()
    avg = average(weights)
    result = getLarger(weights, avg)
    showResult(result)


# 6. 调用主函数
main()
